package anno;
import config.ResouceReleaseConfig;
import config.TokenConfig;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @Description:
 * @Author: Mr.Liu
 * @Date: created in 11:04 2023/3/3
 * @Modified By:
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
//@Import({ResouceServerConfig.class, TokenConfig.class})
@Import({})
@SpringBootApplication
@EnableDiscoveryClient
public @interface XueChengApplication {
    // 配置此参数是供@import注解使用
    @AliasFor(
            annotation = Import.class
    )
            //添加默认值  没有的话使用此配置
    Class<?>[] value() default {TokenConfig.class, ResouceReleaseConfig.class};
}
